<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>医生值班界面</title>
    <link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<%=basePath%>/js/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/rl.js"></script>
    <script type="text/javascript">

        $(function(){
            $('tbody tr:odd').addClass("trLight");
            $(".select-all").click(function(){
                if($(this).attr("checked")){
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", true);
                    });
                }else{
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", false);
                    });
                }
            });
        });

        function zbts(ddid){
            if (confirm("代表医院提醒您，工作辛苦，感谢付出!")) {}
        }
    </script>
    <style type="text/css">
        body {
            background:#FFF
        }
    </style>
</head>
<body>
<div id="contentWrap">
    <!--表格控件 -->
    <form action="<%=basePath%>doctzbListController" method="post" name="form1">
    <div id="widget table-widget">
        <div class="pageTitle">医生值班管理</div>
        <div class="querybody">
            <ul class="seachform">
                <li><label>医生ID</label><input name="docid" type="text" class="scinput" /></li>
                <li><label>日期</label><input type="text" id="days" name="dutyday" onClick="SelectDate(this.name)" class="scinput"/></li>
                <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
            </ul>
        </div>
        <div class="pageColumn">
            <div class="pageButton"><a href="<%=basePath%>doct/doctzbAdd.jsp"><img src="images/t01.png" title="新增"/></a><span>医生值班列表</span></div>
            <table>
                <thead>
                <th width="">值班ID</th>
                <th width="">值班医生ID</th>
                <th width="">值班日期</th>
                <th width="10%">提示</th>
                </thead>
                <tbody>
                <c:forEach items="${pageInfo.list}" var="doctzb" >
                    <tr>
                        <td>${doctzb.ddid}</td>
                        <td>${doctzb.docid}</td>
                        <td>
                            <fmt:formatDate value="${doctzb.dutyday}" pattern="yyyy-MM-dd"/>
                        </td>
                        <td>
                            <a onclick="zbts('${doctzb.ddid}')"><img src="images/zb.png" width="16" height="16" /></a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div><!-- #widget -->
    <div id="pagination" style="align:right;margin-top:-10px;">
        <div id='project_pagination' class="pagination pagination-centered">
            <div class="pagination">
                <ul>
                    <li class="disabled"><a href="#">«</a></li>
                    <li class="active"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">»</a></li>
                </ul>
                <ul>
                    <li><span>(1-10/38)</span></li>
                    <li><span>显示条数&nbsp;:&nbsp;</span></li>
                </ul>
                <ul>
                    <li class="active"><a href="#">10</a></li>
                    <li class=""><a href="#">30</a></li>
                    <li class=""><a href="#">50</a></li>
                </ul>
            </div>
        </div>
    </div>
    </form>
</div>
</body>
</html>
